<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <meta name="content-type" content="text/html; charset=UTF-8" />
    <title>退款详情</title>
    <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}" type="text/css" media="screen" />
    <script type="text/javascript" th:src="@{/jquery/jquery-1.12.4.min.js}"></script>
    <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}"></script>

</head>
<body>


<div class="panel panel-default">
    <ol class="breadcrumb">
        <li><a href="/admin/refund/">退款列表</a></li>
        <li class="active">退款详情</li>
    </ol>

    <div style="padding: 10px">
        <!-- Table -->
        <div class="row">
            <div class='col-sm-5'>
                <table class="table" style="border-top-width:0px;border: 1px solid #dddddd;">
                    <th:block th:if="${msg}">
                        <div class="alert alert-warning">
                            <a href="#" class="close" data-dismiss="alert">
                                &times;
                            </a>
                            <strong>提示:</strong><span th:text="${msg}"></span>
                        </div>
                    </th:block>
                    <th:block th:if="${respRefundDetail}">
                        <tr>
                            <td><span>ID:</span></td>
                            <td><span th:text="${respRefundDetail.id}"></span></td>
                        </tr>
                        <tr>
                            <td><span>车牌号码:</span></td>
                            <td><span th:text="${respRefundDetail.carNo}"></span></td>
                        </tr>
                        <tr>
                            <td><span>行程单号:</span></td>
                            <td><span th:text="${respRefundDetail.orderNo}"></span></td>
                        </tr>
                        <tr>
                            <td><span>金额:</span></td>
                            <td><span th:text="${respRefundDetail.amount}"></span></td>
                        </tr>
                        <tr>
                            <td><span>起点:</span></td>
                            <td><span th:text="${respRefundDetail.start}"></span></td>
                        </tr>
                        <tr>
                            <td><span>终点:</span></td>
                            <td><span th:text="${respRefundDetail.end}"></span></td>
                        </tr>
                        <tr>
                            <td><span>退款时间:</span></td>
                            <td><span th:text="${respRefundDetail.createTime}"></span></td>
                        </tr>
                        <tr>
                            <td><span>操作人:</span></td>
                            <td><span th:text="${respRefundDetail.operater}"></span></td>
                        </tr>
                    </th:block>
                </table>
            </div>
        </div>
    </div>
</div>

</body>
<script>
    function noagreeSubmit() {
        if(document.getElementById("reply").value.length == 0){
            alert("请填写不同意原因");
        }
        document.getElementById("isAgree").value = 0;
        document.updateForm.submit();
    }
    function agreeSubmit() {
        document.getElementById("isAgree").value = 1;
        document.updateForm.submit();
    }
</script>
</html>